Skip to content

Conversation

@chansey97
Copy link

Install Ruyi-Models in the latest ComfyUI_windows_portable (v0.3.4.1). After pressing the Run button, ComfyUI reports the following error:

# ComfyUI Error Report
## Error Details
- **Node ID:** 2
- **Node Type:** Ruyi_I2VSampler
- **Exception Type:** ValueError
- **Exception Message:** The deprecation tuple ("output_type=='np'", '0.33.0', "`get_2d_sincos_pos_embed` uses `torch` and supports `device`. `from_numpy` is no longer required.  Pass `output_type='pt' to use the new version now.") should be removed since diffusers' version 0.33.1 is >= 0.33.0

This because since version 0.33.0, diffusers deprecated the output_type='np' parameter in get_2d_sincos_pos_embed.

Replaced it with output_type='pt'.

Thanks.

…eter in get_2d_sincos_pos_embed. Replaced it with output_type='pt', otherwise:

# ComfyUI Error Report
## Error Details
- **Node ID:** 2
- **Node Type:** Ruyi_I2VSampler
- **Exception Type:** ValueError
- **Exception Message:** The deprecation tuple ("output_type=='np'", '0.33.0', "`get_2d_sincos_pos_embed` uses `torch` and supports `device`. `from_numpy` is no longer required.  Pass `output_type='pt' to use the new version now.") should be removed since diffusers' version 0.33.1 is >= 0.33.0
@chansey97
Copy link
Author

chansey97 commented Jun 24, 2025

Another workaround is to change the requirements.txt,

from

diffusers>=0.28.2

to

diffusers>=0.28.2,<=0.32.2

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant